package com.example.color_test.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import springfox.documentation.annotations.ApiIgnore;

import java.io.Serializable;


/**
 *  record
 * @author 大狼狗 2021-02-21
 */
@Data
public class Record implements Serializable {

    private static final long serialVersionUID = 1L;

    public Record(Record record) {
        this.id = record.getId();
        this.time = record.getTime();
        this.keyId = record.getKeyId();
        this.redRange = record.redRange;
        this.greenRange = record.getGreenRange();
        this.blueRange = record.getBlueRange();
        this.result = record.getResult();
    }

    /**
     * 测试记录id
     */
    @ApiModelProperty(hidden=true)
    private Integer id;

    /**
     * 测试时间
     */
    @ApiModelProperty(hidden=true)
    private String time;

    /**
     * 测试上传的图片组id
     */
    @ApiModelProperty(value="测试上传的图片组id",name="keyId",required = true ,example = "wwwwww")
    private String keyId;

    /**
     * 红色色域值
     */
    @ApiModelProperty(value="红色色域值",name="redRange",required = false ,example = "40")
    private String redRange;

    /**
     * 绿色色域值
     */

    @ApiModelProperty(value="绿色色域值",name="greenRange",required = false ,example = "255")
    private String greenRange;

    /**
     * 蓝色色域值
     */
    @ApiModelProperty(value="蓝色色域值",name="blueRange",required = false ,example = "16")
    private String blueRange;

    /**
     * 测试结果集
     */
    private String result;

    public Record() {
    }

}